package std.filters;

import java.net.URLDecoder;

import net.wimpi.telnetd.io.TerminalIO;
import net.wimpi.telnetd.io.terminal.ColorHelper;
import net.wimpi.telnetd.io.terminal.Colorizer;
import net.wimpi.telnetd.io.terminal.ansi;
import net.wimpi.telnetd.net.Connection;
import net.wimpi.telnetd.net.ConnectionData;

import org.groovymud.shell.telnetd.ExtendedTerminalIO;

import groovy.util.GroovyTestCase;

class TranslationFilterTest extends GroovyTestCase {

	public void testDoFilter() {
		def str = ColorHelper.colorizeText("You are standing still somewhere.\r\nHelp!", ColorHelper.BLUE);
		TranslationFilter<ExtendedTerminalIO> filter = new TranslationFilter<ExtendedTerminalIO>(language: "fr");
		def ret = filter.doFilter(null, str)
		filter.language = "es"		
		ret = filter.doFilter(null, str)
		filter.language = "it"		
		ret = filter.doFilter(null, str)		
		
		//assert str == filter.doFilter(null, str)
	}
}
